﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;
using System.Data;
using Kiaser.Core.General;

namespace Kiaser.Core
{
    public class DbInitializer : DropCreateDatabaseIfModelChanges<KiaserContext>
    {
        protected override void Seed(KiaserContext context)
        {
            string passwordS = Security.SHA256("1234");

            context.Administrators.Add(new Administrator() { Accounts = "kiaser", Password = passwordS });
            base.Seed(context);
        }
    }
}
